#!/usr/bin/env python
# -*- coding: utf-8 -*-

def check_file_encoding(file_path):
    try:
        with open(file_path, 'r', encoding='utf-8') as f:
            content = f.read()
            print(f"\n{file_path} 可以用 UTF-8 正确读取")
            return True
    except UnicodeDecodeError:
        print(f"\n{file_path} 不是 UTF-8 编码")
        return False

if __name__ == "__main__":
    files = [
        'app/models/employee.py',
        'app/api/employees.py'
    ]
    for file in files:
        check_file_encoding(file) 